package com.woniuxy.intellihome.mapper;

import com.woniuxy.intellihome.entity.Spec;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2021-08-11
 */
public interface SpecMapper extends BaseMapper<Spec> {
    @Select("select id from m_spec where goods_id=#{goods_id}")
    List<Integer> getspecIdsByGoodsId(int goods_id);

}
